import service from './service';

/**
 * 生成二维码
 * @param content 内容
 * @param width 宽
 * @param height 高
 * @example const res = await qrcode(content, width, height);
 */
export default function qrcode(content: string, width: number, height: number) {
	const param = {
		content,
		height,
		width
	};
	return service<{ code: string; result: string; }>('qr.createcode', param, false, false);
}
